<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sys_dicts', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 50)->comment('类型名称');
            $table->string('code', 50)->nullable()->comment('类型编码');
            $table->boolean('status')->nullable()->comment('状态（0：正常；1：禁用）');
            $table->string('remark')->nullable()->comment('备注');
            $table->dateTime('create_time')->nullable();
            $table->dateTime('update_time')->nullable();
            $table->dateTime('deleted_at')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sys_dicts');
    }
};
